import { v4 as uuidv4 } from 'uuid'
export const getUserTempId = () => {
    // 先获取一下
    const userTempId = localStorage.getItem('userTempId')
    // 如果没有的话就生成一份
    if (!userTempId && uuidv4) {
        localStorage.setItem('userTempId', uuidv4())
    }

    return userTempId
}